<?php
/**
 * Created by 王跃达.
 * User: 小马出行
 * Date: 2017/8/25
 * Time: 10:07
 */

namespace my;


use think\Env;

interface Define
{
    const PRE="xm_";//城际出行的前缀
    const MAX_RED=100;//红包最大使用额度 100分
    const GD_SECRET="7b03269c234c3334d7c20d6c6eaa7b08";//高德私钥
    const GD_KEY="725bf21994679b3f4fcc1093003c7401";//高德key
    const SQL_TABLE="59af94fa305a2a4ed7f241ed";//高德TABLE_ID
    const AXB_KEY="LTAIrIMQqfJMHKT6";//阿里云号码绑定key
    const AXB_SECRET="NaLiWdLuk4uAIHqBnzFfEtNjnWivsd";//阿里云号码绑定私钥
    const RULE_MOBILE = "/^1[3-9]\d{9}$/";
    const RULE_PASS='/^(?=.*\d)(?=.*[a-z]).{8,16}$/';
    const ORDER_STATUS=array(
        0=> "等待司机",
        10=>"系统取消",
        15=>"手动取消",
        20=>"未上车",
        30=>"已上车",
        40=>"已送达",
        45=>"已付款",
        50=>"已评价",
    );
    //订单状态 '0未付款，10取消，20退款，30已付款，40已上车，50以完成'
    //小马出行 支付宝支付
    const ALIPAY=array(
        "appId"=> "2018011601899476",
        "rsaPrivateKey"=>'MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCBt9BvmOCxDNxkj1iVsduOIOrj6ZjL9KP+yAXTHoXznzMGyqhk4YvcUPmAll7LFtY0R9X7kQZLsf09sU+OjL41r1+LCcZz7EIQoSkTdqsUKaWjOCbav8AvuEVKV/FxEMoAJrFoxgugFlDrUR5/26B7J8sGRLiAbSbEHushlNo3xqcP7rCDZsFDnUYSgujA20WAHKxut1jw6DJFYlwlzoQZ280sOU+RDHW3FcyqSSP4Fggv1w/Nmplxth17SsRt4vCJG0xvxNsXlPpCUlphbN8wMF19n0vLq9p1ISIAxPDWyQUg+WRfa3N4tFWgbgPJKHMPC4sFQgcNjh1mYmahjc9rAgMBAAECggEALYo6wvMI7x90wFkS4HrweZVU4W7BFdltOaU/Zj7xB/Z8E4ZSWBhW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2HsAUs3JBswEGxzZERrNzgN/sT3H1JTAWeRx3obrlFEwqaAfFlYcCeWHtXxdyifXEck8AyIhBikGsxQboMRwmuh99nSUZgg6iG01I5YpXR8w+A==',
        "alipayrsaPublicKey"=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv2Uv/1K4KYbH3Zpi2rHG3P3CWM5N2FPpR3DL3TnURBI+5GCREPPSlxzTqX3rwcsSrHN/hECidbZdozWAr0oUYPnbJeBRPJJFrB0IXN7YCWzbkvTd+rVnaRmqxcDuwVAy+R21lfMtixOvrarDzOs6MIuggW2a0+TpLkBZjj1TY37vmutJnswWFXzX5IMuIIH3R8ZIFNXsnqRRe0R8XxvuEojKYn6tUqY2l2XevV39v8fueqq0BZTbG/d6uqwgkt/31gRCWmLfk0NsbZluHqkPvwRqZlN3yqjmfCf20zn4wSxPH+sKPvkeIcwaBsberPjfT9Srhd7ZOwNerDoOGNHFwwIDAQAB',
        "setNotifyUrl"=>"https://m.xiaomachuxing.cn/api/pay/alipayApiBack",
        "alipayPublicKey"=>ROOT_PATH.'/public/ali_cert/alipayPublicKey.txt',
    );
    //蜜马出行 支付宝
    const MMALIPAY = array(
        "appId"=> "2019031263531331",
        "rsaPrivateKey"=>'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrI64ifoSFdVgVscCv6Io+xDSaVzAHoreG+3BgDVD1ueyrIn8QdSt+GYobFSiW6bf7rICtX2vlw+mYN4FmK3BZnRbYbyYQWOm/24/4X2JrycsDUg5HduYDzmUdvEMLyUTu6WMgyoizW5JFlSsOFKWgwXXTdtS0+rMOHG8c2ytI5DIcstAAwMsDsrW+SdlJCH6gZgf8nKj7dP130pQ2phozLvtsUm0ufQeYN4vVxFDkPpDk3IDpRSrE4Mh4mscmpiEKNId32L2SxDMmQSkT/X/XyCN5PxKKWgful/1Ezu1jMculFk3ZN7yP/7iIvXEROwi2EP9InUGQpelsydxPSajjAgMBAAECggEAc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2aoQ6qHr4CVwMUd3MKiemiRVloE3+jfw8ok6OqsBq+tGCIqeVwEIUTI0kSessNzWejqo7Ac942DnEbZ9tr9Oo55nRHihgzURHRfYAuqgiuEyV5wuOfIFfkF2ihba7DfpoEUIYlI0RHgvA=',
        "alipayrsaPublicKey"=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyOuIn6EhXVYFbHAr+iKPsQ0mlcwB6K3hvtwYA1Q9bnsqyJ/EHUrfhmKGxUolum3+6yArV9r5cPpmDeBZitwWZ0W2G8mEFjpv9uP+F9ia8nLA1IOR3bmA85lHbxDC8lE7uljIMqIs1uSRZUrDhSloMF103bUtPqzDhxvHNsrSOQyHLLQAMDLA7K1vknZSQh+oGYH/Jyo+3T9d9KUNqYaMy77bFJtLn0HmDeL1cRQ5D6Q5NyA6UUqxODIeJrHJqYhCjSHd9i9ksQzJkEpE/1/18gjeT8SiloH7pf9RM7tYzHLpRZN2Te8j/+4iL1xETsIthD/SJ1BkKXpbMncT0mo4wIDAQAB',
        "setNotifyUrl"=>"https://m.xiaomachuxing.cn/api/pay/alipayApiBack",
        "alipayPublicKey"=>ROOT_PATH.'/public/ali_cert/mmAlipayPublicKey.txt',
    );
    //小马出行 微信支付
    const WECHAT=array(
        "appid"=> "wx91803e794e97fb65",
        "mch_id"=>"1493811712",
        "notify_url"=>"https://m.xiaomachuxing.cn/api/pay/wechatApiBack",
        "key"=>"DSFERDSSFR24344sfsfDwfrw34dsfsdf",
        "secret"=>"ef27d4c1db2e5acd18b0a9ee1e546d08",
        "sslcert_path"=>ROOT_PATH."/public/wx_cert/apiclient_cert.pem",
        "sslkey_path"=>ROOT_PATH."/public/wx_cert/apiclient_key.pem",
    );
    //蜜马出行 微信
    const MMWECHAT=array(
        "appid"=> "wx2407e339542f4494",
        "mch_id"=>"1528339671",
        "notify_url"=>"https://m.xiaomachuxing.cn/api/pay/wechatApiBack",
        "key"=>"DSFERDSSFR24344sfsfDwfrw34dsfsdf",
        "secret"=>"5e652d188226c625009a881e63b59540",
        "sslcert_path"=>ROOT_PATH."/public/mmwx_cert/apiclient_cert.pem",
        "sslkey_path"=>ROOT_PATH."/public/mmwx_cert/apiclient_key.pem",
    );
    //微信支付
    const JAVA_URL="localhost:8888/passenger/searchDrivers";//小马出行司机端接口
    const CANCEL_TIME=300;//系统自动取消时间
    const ORDER=array("start_local","start_name","arrive_local","arrive_name","passenger_phone");
    const MAXRECORDS = 4500000;//司机订单记录坐标记录的最大数量,根据网上建议不超过500万
    const FTP_URL = OSS;//小马出行司机端接口
    const AVATAR="https://oss.xiaomachuxing.cn/avatar/logo.png";//头像默认图片
    const ENCODE_FIELDS = array(
        "start_local","start_name","arrive_local","arrive_name","passenger_phone",
        "license","permit","id_front","id_back","car_plate","car_type","color","owner",
        "taxi_license_number","company","frame_number","id_number",
        "driver_phone","register_MAC","register_IMEI","register_IMSI","register_local",
        "register_city","taxi","vin"
    );
    const INTERCITY_ROOT_DIR = 'intercity';//城际文件根目录
    const INNER_ROOT_DIR = 'inner';//城内文件根目录
    const DRIVER_AUTH_DIR = 'certificate';//司机认证时上传图片的文件夹
    const DRIVER_AVATAR_DIR = 'driver_avatar';//司机头像文件夹
    const USER_DIR = 'avatar';//用户头像文件夹
    const ID_REGEX = "/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/u";
    const PASS_REGEX_M = "/^(?![0-9]+$)(?![a-zA-Z]+$)(?!([^(0-9a-zA-Z)]|[\(\)])+$)([^(0-9a-zA-Z)]|[\(\)]|[a-zA-Z]|[0-9]){8,16}$/i";
    const THIRD = 'third';//第三方文件根目录
    const COACH = 'coach';//教练认证上传图片的文件夹
    const ADMIN_DIR = 'admin';//后台单独文件根目录
    const ACTIVITY_DIR = 'activity';//后台上传活动的图片
    const TEMP_DIR = 'temp';//临时文件夹
    const NO_PASS_AUTH_DIR = 'unpass';//司机未通过认证时上传图片保存的文件夹
    const DRIVER_FACE_BASE_DIR = 'driver_face_base';//司机人脸识别
    // const SMS_KEY = "LTAI5tQ4Kh7FV4T8sEhGNUg5";//阿里云短信key
    // const SMS_SECRET = "8jUPVPmwrBTk3KZZSYWENBCuCG0NVc";//阿里云短信私钥

    const SMS_KEY = "23815139";//阿里云短信key
    const SMS_SECRET = "1936def6e0a5fa506b3ceed72febcc9c";//阿里云短信私钥



    const JIAOTONG = 'jiaotongjianguan';//城内文件根目录
    const Brand = 'brand';//车辆品牌
    const CarType = 'cartype';//车辆类型
}